#pragma once

#include<iostream>
#include<string>
#include<ctime>

std::string GetCurrTime()
{
    time_t t = time(nullptr);
    struct tm* cur = ::localtime(&t);

    char currtime[64];
    snprintf(currtime,sizeof(currtime),"%d_%d_%d_%d_%d_%d",
            cur->tm_year+1900,
            cur->tm_mon+1,
            cur->tm_mday,
            cur->tm_hour,
            cur->tm_min,
            cur->tm_sec);
    return currtime;
}